package io.sage.modules.statistics.service.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import io.sage.modules.statistics.vo.BStatisVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.sage.modules.statistics.dao.BStatisticsWindDirectionMapper;
import io.sage.modules.statistics.entity.BStatisticsWindDirection;
import io.sage.modules.statistics.service.BStatisticsWindDirectionService;

/**
 * 传感器风向服务
 * @author xjh
 *
 */
@Service("statisticsWindDirectionService")
public class BStatisticsWindDirectionServiceImpl implements BStatisticsWindDirectionService {

	@Autowired
	private BStatisticsWindDirectionMapper statisticsWindDirectionMapper;

	@Override
	public BStatisticsWindDirection selectById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deleteBatchIds(List<Integer> asList) {
		// TODO Auto-generated method stub

	}

	@Override
	public List<BStatisticsWindDirection> selectStatisticsWindDirectionList(Map<String, Object> params) {
		// TODO Auto-generated method stub
		return statisticsWindDirectionMapper.selectStatisticsWindDirectionList(params);
	}

	@Override
	public int insert(BStatisticsWindDirection statisticsWindDirection) {
		statisticsWindDirection.setCreateTime(new Date());
		statisticsWindDirection.setIsDeleted(0);
		statisticsWindDirection.setIsUsed(1);
		return statisticsWindDirectionMapper.insertSelective(statisticsWindDirection);
	}

	@Override
	public int saveWindDirectionList(List<BStatisticsWindDirection> list) {
		// TODO Auto-generated method stub
		return statisticsWindDirectionMapper.saveWindDirectionList(list);
	}

	@Override
	public List<BStatisVo> selectListByWarehouseId(Map params) {
		return statisticsWindDirectionMapper.selectListByWarehouseId(params);
	}

}
